package com.bckj.fastboot.core.extra.relational;

import jakarta.persistence.Table;
import lombok.Getter;
import org.springframework.data.mapping.model.BasicPersistentEntity;
import org.springframework.data.util.TypeInformation;

/**
 * RelationalPersistentEntity
 *
 * @author wfc
 **/
@Getter
public class RelationalPersistentEntity<T> extends BasicPersistentEntity<T, RelationalPersistentProperty> {
    private final String tableName;
    public RelationalPersistentEntity(TypeInformation<T> information) {
        super(information);
        tableName = information.getType().getAnnotation(Table.class).name();
    }
}
